/**
 * @filename:Formula 2022-3-5
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.admin.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldFill;

/**   
 * @Description:TODO(编号管理实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_formula")
@ApiModel(value="sys_formula对象", description="编号管理表")
public class Formula extends Model<Formula> {

	private static final long serialVersionUID = 6436926669075085L;
	
	@TableId(value ="formula_id", type = IdType.NONE)  
	@ApiModelProperty(name = "formula_id" , value = "编号")
    private String formula_id;
    
    @TableField(value = "template") 	
	@ApiModelProperty(name = "template" , value = "模板")
    private String template;
    
    @TableField(value = "lastvalue") 	
	@ApiModelProperty(name = "lastvalue" , value = "最新值")
    private String lastvalue;
    
    @TableField(value = "lastdate") 	
	@ApiModelProperty(name = "lastdate" , value = "更新时间")
    private Date lastdate;
    
    @TableField(value = "create_by") 	
	@ApiModelProperty(name = "create_by" , value = "创建人")
    private Long create_by;
    
	@TableField(value = "create_time",fill=FieldFill.INSERT) 
	@ApiModelProperty(name = "create_time" , value = "创建时间")
    private Date create_time;
    
    @TableField(value = "update_by") 	
	@ApiModelProperty(name = "update_by" , value = "更新人")
    private Long update_by;
    
 	@TableField(value = "update_time",fill=FieldFill.UPDATE) 
	@ApiModelProperty(name = "update_time" , value = "更新时间")
    private Date update_time;
    
    @TableField(value = "remark") 	
	@ApiModelProperty(name = "remark" , value = "备注")
    private String remark;
    

	@Override
    public Serializable pkVal() {
        return this.formula_id;
    }
   
}
